#!/usr/bin/env node
const log = console.log;
log('CPU architecture:',process.arch);
log('OS:',process.platform);
log('\npid:',process.pid);
log(`exePath: ${process.execPath}\n`);


/*const stdin = process.stdin;
stdin.on('data',()=>{

});
stdin.on('end',()=>{
  log('bye');
})*/

log('\nnode.js ver:',process.version);
log('login username:',process.getuid());
log('user group:',process.getgid());
log('pwd:',process.cwd());

log('\n rss:',process.memoryUsage().rss);
log('\n heapTotal:',process.memoryUsage().heapTotal);
log('\n heapUsed:',process.memoryUsage().heapUsed);
log('\n external:',process.memoryUsage().external);

log('\nenv:',process.env);
log('\nlogin user:',process.env.USER);
log('\nhost name:',process.env.HOSTNAME);
